
package org.darcy.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.*;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.darcy.framework.model.PageParam;
import org.darcy.entity.SysResources;

@ApiModel(": SysResourcesModel")
@Getter
@Setter
public class SysResourcesModel extends PageParam implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "")
	private Long id;

	@ApiModelProperty(value = "")
	private String name;

	@ApiModelProperty(value = "")
	private String type;

	@ApiModelProperty(value = "")
	private String url;

	@ApiModelProperty(value = "")
	private String permission;

	@ApiModelProperty(value = "")
	private Long parentId;

	@ApiModelProperty(value = "")
	private Integer sort;

	@ApiModelProperty(value = "是否外部链接")
	private Byte external;

	@ApiModelProperty(value = "")
	private Byte available;

	@ApiModelProperty(value = "菜单图标")
	private String icon;

	@ApiModelProperty(value = "添加时间")
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	private Date updateTime;

	/**
	 * model类转化为mybatis plus 查询条件
	 */
	public QueryWrapper<SysResources> buildWrapper() {
		QueryWrapper<SysResources> p = new QueryWrapper<SysResources>();
		return p;
	}

	private String checked;

	private SysResources parent;

	private List<SysResources> nodes;

}
